﻿using Cache.Redis;
using Common;
using Model.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace DataService.User
{
    /// <summary>
    /// RoleInfo 的摘要说明
    /// </summary>
    public class RoleInfo
    {
        /// 该账号是否已经存在角色信息
        /// <summary>
        /// 该账号是否已经存在角色信息
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        public static bool IsExistRole(string uid)
        {
            return RedisHelper.instance.IsHashContainsEntry(RoleData.DB_Name, uid);
        }
    }
}
